package com.aifund.app.service.impl;

import com.aifund.app.service.ExchangeService;
import com.aifund.common.dao.ExchangeDao;
import com.aifund.common.entity.AiExchange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExchangeServiceImpl implements ExchangeService {
    @Autowired
    ExchangeDao exchangeDao;
    @Override
    public AiExchange getById(Long id) {
        return exchangeDao.getOne(id);
    }

    @Override
    public List<AiExchange> findAll() {
        return exchangeDao.findAll();
    }
}
